using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data;

namespace JCard
{
    public class BUS_JCARD
    {
        private string str_data; // duong dan toi datasource

        public BUS_JCARD(string sts)
        {
            str_data = sts;
        }


        public ArrayList GetContentTableKanjiOfS3GT()
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            return dao.GetContentTableKanjiOfS3GT();
            //return dao.GetContentTableKanjiOfS3GT();
        }

        public ArrayList GetContentTableVocabularyOfS3GT()
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            return dao.GetContentTableVocabularyOfS3GT();
        }

        public ArrayList GetTopic()
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            return dao.GetTopic();
        }
        public ArrayList GetContentTableVocByTopicID(ArrayList arrListID)
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            return dao.GetContentTableVocByTopicID(arrListID);
        }
        public DataTable GetTableVocByTopicID(ArrayList arrListID)
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            return dao.GetTableVocByTopicID(arrListID);
        }
        public ArrayList GetTopicGroup()
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            return dao.GetTopicGroup();
        }

        public void UpdateIsLastTopic(ArrayList arrTopic, bool isLastTopic)
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            dao.UpdateIsLastTopic(arrTopic, isLastTopic);
        }
        public void ResetIsLastTopic()
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            dao.ResetIsLastTopic();
        }
        public ArrayList GetTopicIsLastTopic()
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            return dao.GetTopicIDIsLastTopic();
        }
        public void UpdateVocabulary(DTO_VOC dtoVoc)
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            dao.UpdateVocabulary(dtoVoc);
        }
        public void UpdateVocabularyStatus(DTO_VOC dtoVoc)
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            dao.UpdateVocabularyStatus(dtoVoc);
        }
        public void UpdateIsLastSelected(ArrayList arrSelectedVocID, ArrayList arrUnSelectedVocID)
        {
            DAO_JCARD dao = new DAO_JCARD(str_data);
            dao.UpdateIsLastSelected(arrSelectedVocID, arrUnSelectedVocID);
        }
    }
}
